Evaluating distributed application performance in a new environment

ABSTRACT

Evaluating the performance of an application when migrated from a first environment in which the application is currently executing to a different second environment includes generating a configuration file using data obtained from the application executing in the first environment, installing the configuration file in a virtual machine residing in the second environment, launching the application in the virtual machine after the installing, and obtaining a metric indicative of the performance from the virtual machine.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.13/715,480, filed Dec. 14, 2012, which is herein incorporated byreference in its entirety.

BACKGROUND OF THE INVENTION

The present invention relates generally to data migration and relatesmore specifically to the migration of distributed applications.

A distributed application is an application in which presentation,application processing, and data management are performed as logicallyseparate processes over multiple cooperating servers. These serversmight include, for example, one or more hypertext transfer protocol(HTTP) servers, application servers, and/or relational databasemanagement systems.

When a distributed application is to be migrated to a new environment(e.g., a cloud environment), it is often difficult to estimate how theapplication will perform in the new environment. For example, somesoftware packages may conflict with each other in the new environmentand negatively impact application performance. However, it is difficultto accurately estimate the application's performance in the newenvironment without actually installing and configuring the applicationin the new environment. Although the distributed application could becompletely re-installed and re-configured in the new environment, thisapproach is not ideal for several reasons. For one, installation iscomplicated by the subtle interdependencies between the applicationtiers, potentially complex configurations, and application specifictreatments. Moreover, it is costly and labor-intensive to migrate andstore all of the data associated with a distributed application.

Other approaches that avoid completely re-installing the distributedapplication in the new environment have drawbacks as well. For instance,micro-benchmarks could be run in the current environment and the newenvironment to learn performance differences, and performance modelscould then be built for the current environment and translated into thenew environment using the micro-benchmarks. However, the weaknesses ofthe selected modeling technique carry over into the results, and themodel translation introduces inaccuracies as well. Alternatively, theapplication could be profiled in-depth to construct a straw manapplication that mimics the application's resource consumption. However,it is difficult to accurately mimic certain resource consumption andexecution behaviors such as thread synchronization and memory usage.

SUMMARY OF THE INVENTION

Evaluating the performance of an application when migrated from a firstenvironment in which the application is currently executing to adifferent second environment includes generating a configuration fileusing data obtained from the application executing in the firstenvironment, installing the configuration file in a virtual machineresiding in the second environment, launching the application in thevirtual machine after the installing, and obtaining a metric indicativeof the performance from the virtual machine.

Thus, embodiments of the present invention replicate an executionenvironment in the target environment to which an application is to bemigrated. This is achieved by intercepting system library invocationsand modifying the input/output parameters and return values. Theunmodified application binary is used directly.

BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which the above recited features of the presentinvention can be understood in detail, a more particular description ofthe invention may be had by reference to embodiments, some of which areillustrated in the appended drawings. It is to be noted, however, thatthe appended drawings illustrate only typical embodiments of thisinvention and are therefore not to be considered limiting of its scope,for the invention may admit to other equally effective embodiments.

FIG. 1 is a block diagram depicting one example of a network withinwhich embodiments of the present invention may be deployed;

FIGS. 2A-2C are block diagrams illustrating one embodiment of atechnique for replicating network settings, according to the presentinvention;

FIG. 3 is a flow diagram illustrating one embodiment of a method forautomatically replicating a distributed application in a newenvironment, according to embodiments of the present invention;

FIG. 4 is a block diagram illustrating one embodiment of a technique forhandling new interactions and/or subsequent migrations of anapplication, according to the present invention; and

FIG. 5 is a high-level block diagram of the performance evaluationmethod that is implemented using a general purpose computing device.

DETAILED DESCRIPTION

In one embodiment, the invention is a method and apparatus forevaluating distributed application performance in a new environment.Embodiments of the invention replicate the application's originalexecution environment in a new set of servers and use the applicationbinary to drive performance measurement. In particular, the replicatedenvironment includes the network Internet Protocol (IP) configurations,library files, directory structure, user accounts, environmentvariables, and the like of the original environment, which allows theapplication binary to execute correctly. Accurate performance metricscan be obtained from successful deployment of the application in thereplicated environment, because the application will consume resourcesin the replicated environment in the same manner that it would consumeresources in the original environment. This will allow all of theexecution intricacies (e.g., central processing unit (CPU) cachingeffects, thread synchronization, and the like) to manifest.

FIG. 1 is a block diagram depicting one example of a network 100 withinwhich embodiments of the present invention may be deployed. The network100 may be any type of communications network, such as for example, anInternet Protocol (IP) network (e.g., an IP Multimedia Subsystem (IMS)network, an asynchronous transfer mode (ATM) network, a wirelessnetwork, a cellular network, a long term evolution (LTE) network, andthe like). An “IP network” is broadly defined as a network that usesInternet Protocol to exchange data packets. Additional exemplary IPnetworks include Voice over IP (VoIP) networks, Service over IP (SoIP)networks, and the like.

In one embodiment, the network 100 may comprise a core network 102. Thecore network 102 may be in communication with one or more accessnetworks 120 and 122. The access networks 120 and 122 may include awireless access network (e.g., a WiFi network and the like), a cellularaccess network, a cable access network, a wired access network and thelike. In one embodiment, the access networks 120 and 122 may all bedifferent types of access networks, may all be the same type of accessnetwork, or some access networks may be the same type of access networkand other may be different types of access networks. The core network102 and the access networks 120 and 122 may be operated by differentservice providers, the same service provider or a combination thereof.

In one embodiment, the core network 102 may include an applicationserver (AS) 104 and a database (DB) 106. Although only a single AS 104and a single DB 106 are illustrated, it should be noted that any numberof application servers 104 or databases 106 may be deployed. Forinstance, the core network 102 may comprise a portion of a cloudenvironment in which services and applications are supported in a highlydistributed manner.

In one embodiment, the AS 104 may comprise a general purpose computer asillustrated in FIG. 5 and discussed below. In one embodiment, the AS 104may perform the methods and algorithms discussed below related toevaluating distributed application performance. For instance, the AS 104may initiate migration of an application and/or maintain IP bindingstates.

In one embodiment, the DB 106 stores data relating to the distributedapplications(s) being migrated. For instance, the DB 106 may store inputand output parameters for system calls, file system settings, useraccount settings, and environment variables, among other data. Althoughonly one DB 106 is illustrated, the network 100 may include multipledatabases.

In one embodiment, the access network 120 may be in communication withone or more user endpoint devices (also referred to as “endpointdevices” or “UE”) 108 and 110. In one embodiment, the access network 122may be in communication with one or more user endpoint devices 112 and114.

In one embodiment, the user endpoint devices 108, 110, 112 and 114 maybe any type of endpoint device that is capable of accessing servicesfrom a cloud-based service provider, such as a desktop computer or amobile endpoint device such as a cellular telephone, a smart phone, atablet computer, a laptop computer, a netbook, an ultrabook, a portablemedia device (e.g., an MP3 player), a gaming console, a portable gamingdevice, and the like. It should be noted that although only four userendpoint devices are illustrated in FIG. 1, any number of user endpointdevices may be deployed.

It should be noted that the network 100 has been simplified. Forexample, the network 100 may include other network elements (not shown)such as border elements, routers, switches, policy servers, securitydevices, a content distribution network (CDN) and the like.

As discussed above, embodiments of the invention replicate theapplication's original execution environment, including network settingsand file system settings, in a new set of servers. In one embodiment,the network settings are replicated via a software layer introducedbetween the application and the kernel that replaces input parametersand outputs of selected system calls that are related to network setupand tear-down. In a further embodiment, the file system settings arereplicated by packaging the files accessed by the application andcopying them over to the new servers. The new environment is alsoupdated to match user account settings and environment variables.

FIGS. 2A-2C are block diagrams illustrating one embodiment of atechnique for replicating network settings, according to the presentinvention. In particular, the illustrated technique provides theillusion of an execution environment that is identical to the originalexecution environment by intervening at the interaction point betweenthe application and the operating system.

FIG. 2A illustrates the operation of an exemplary application 200 priorto migration, in an original execution environment. As illustrated, theapplication 200 operates in conjunction with an operating system 204that includes a file system and a network stack. In accordance with theapplication 200, a first server 206 may wish to communicate with asecond server 208. Prior to migration, the first server 206 has anexemplary IP address of 9.2.2.1, whereas the second server 208 has anexemplary IP address of 9.2.2.2. Thus, when the first server 206 wishesto connect to the second server 208, the first server 206 sends amessage with the expected destination IP address of 9.2.2.2 to initiatethe connection. The second server 208 expects or recognizes the messagefrom the IP address 9.2.2.1 and accepts the message to establish theconnection.

FIG. 2B illustrates the operation of the exemplary application 200 aftermigration to a new execution environment. As illustrated, the migrationhas resulted in changes to the IP addresses of the first server 206 andthe second server 208 (specifically, the virtual machines that emulatethe first server 206 and the second server 208 in the new executionenvironment have new, different IP addresses). In particular, the firstserver's IP address has changed from 9.2.2.1 to 8.4.4.1, and the secondserver's IP address has changed from 9.2.2.2. to 8.4.4.2. However, theservers 206 and 208 may not be aware of each other's new IP addresses.Thus, when the first server 206 sends a message with the expecteddestination IP address of 9.2.2.2 to initiate the connection, theconnection attempt will experience an error. The IP address 9.2.2.2 doesnot exist in the new execution environment. Moreover, the second server208 will not expect or recognize the message from IP address 8.4.4.1.

FIG. 2C illustrates operation of the exemplary application 200 aftermigration and implementing techniques of the present invention. In thisinstance, a camouflage layer 210 is interposed between the application200 and the operating system 204 in the replicated application. Thecamouflage layer 210 comprises software and/or hardware that interceptssystem calls and replaces the actual values involved in the system callswith expected values, thereby creating the illusion that the executionenvironment has not changed and making the migration transparent to theapplication 200.

For instance, referring to the error example illustrated in FIG. 2B, thecamouflage layer 210 will intercept the first server's message andtranslate the expected destination IP address of 9.2.2.2 to the secondserver's new IP address of 8.4.4.2. Similarly, when the message isreceived by the second server 208, the camouflage layer 210 willintercept the first server's message and translate the first server'snew IP address of 8.4.4.1 to the expected source IP address of 9.2.2.1.In one embodiment, network address translation is provided at thelibrary level, rather than by the network stack. For instance, local IPaddresses can be translated by intercepting input/output control systemcalls (e.g., using the ioctl(SIOCGIFFLAGS) command in Linux); networkendpoints can be translated by retrieving locally bound names or peeraddresses of specified sockets (e.g., using the getsockname( ) orgetpeername( ) commands in Linux); host names can be translated byintercepting strings naming the current systems (e.g., using the uname() command in Linux); and domain name system lookups may be translated byretrieving host information from a database (e.g., using thegethostname( ) command in Linux).

Moreover, as illustrated, the file systems illustrated in FIG. 2C areenclosed within a dashed box. This dashed box indicates that the filesystems have been “jailed” after being copied over from the originalexecution environment to the new execution environment (for example,using the UNIX chroot operation to disguise the file systems). In oneembodiment, however, special file systems such as process files (e.g.,/proc), device files (e.g., /dev), and non-process related system files(e.g., /sys) are mounted (i.e., made accessible) from the new virtualmachine rather than migrated from the original execution environment.

Thus, the present invention intercepts application-operating systeminteractions after server replication and modifies data in theseinteractions (e.g., IP addresses and host names) in order to provide theillusion that the execution environment has not changed. The applicationis thus allowed to continue using the original IP addresses and hostnames from the pre-replication/migration execution environment. Thelocations of all configuration files and data files remain unchanged,and environment variables are reproduced.

It will be appreciated that although FIGS. 2A-2C illustrate embodimentsof the invention within the exemplary context of a connection operation,the same techniques illustrated in FIG. 2C may be implemented tofacilitate other operations as well (e.g., detecting one's own IPaddress, for instance).

FIG. 3 is a flow diagram illustrating one embodiment of a method 300 forautomatically replicating a distributed application in a newenvironment, according to embodiments of the present invention. Inparticular, the method 300 replicates an application to be migrated byincluding a camouflage layer in the replicated application, asillustrated in FIG. 2C. In one embodiment, the method 300 is executed bythe AS 104, which in this case manages the migration of the applicationby collecting data from the original execution environment, generatingnew configuration files, and launching new virtual machines in the newexecution environment.

The method 300 begins in step 302. In step 304, the AS 104 collectsnetwork and file system information from the application executing inthe original execution environment. In one embodiment, the network andfile system information includes input and output parameters for systemcalls, file system settings, user account settings, and environmentvariables, among other data. In one embodiment, the AS 104 stores thisinformation in the DB 106.

In step 306, the AS 104 launches one or more new virtual machines in thenew execution environment. The virtual machines emulate the servers thatare deployed in the original execution environment and may be launchedaccording to any known technique.

In step 308, the AS 104 obtains the IP addresses for the virtualmachines. These IP addresses may also be stored in the DB 106.

In step 310, the AS 104 generates configuration files for the executionenvironment replication using the old IP addresses (of the serversresiding in the original execution environment) and the new IP addresses(of the virtual machines launched in the new execution environment).

In step 312, the AS 104 installs the configuration files in the virtualmachines. The AS 104 then starts the application in each of the virtualmachines in step 314. In step 316, the method 300 ends.

The method 300 thus replicates the original execution environment in anew set of servers in the new execution environment. Successfuldeployment of the application in the replicated environment allows oneto obtain accurate performance metrics, because the replicated serverswill consume resources in the same manner that they would in theoriginal execution environment.

The method 300 may be executed during the initial migration of anapplication or even after migration in order to facilitate on-goingpost-migration management. Where an initial migration is beingperformed, the method 300 may be implemented during a complete migration(i.e., in which all application components are migrated) or a partialmigration (e.g., an incremental migration of application components, ora migration in which only a subset of the components is migrated). Themethod 300 may also be implemented during initial migrations thatmigrate the entire application to a single cloud, that migrate differentportions of the application to multiple different clouds, or thatmaintain some portions of the application in-house (e.g., in theoriginal execution environment) and migrate other portions of theapplication to one or more clouds.

Where ongoing management of an already migrated application is beingperformed, the method 300 may be used to perform migration betweenclouds (e.g., including redistribution of application components acrossmultiple clouds for application optimization) or to facilitate newinteractions between applications that employ a camouflage layer such asthat disclosed (e.g., application components may be migrated to separateclouds after a period of interaction).

FIG. 4 is a block diagram illustrating one embodiment of a technique forhandling new interactions and/or subsequent migrations of anapplication, according to the present invention. In particular, FIG. 4illustrates a technique for resolving a conflict between two migratedapplications having the same IP address.

FIG. 4 thus includes a first application comprising a first plurality ofservers 400 ₁-400 _(n) (collectively referred to as “first application400”) and executing in a first home environment 404 and a secondapplication comprising a second plurality of servers 402 ₁-402 _(m)(collectively referred to as “second application 402”) and executing ina second home environment 406. The first application 400 and the secondapplication 402 are both migrated from their respective homeenvironments to a first cloud environment 408; subsequently, the secondapplication 402 is migrated to a second cloud environment 410. Althoughnot illustrated, each of the first home environment 404, the second homeenvironment 406, the first cloud environment 408, and the second cloudenvironment 410 further includes a server such as the AS 104 operatingin accordance with the method 300.

As illustrated, in their respective home environments, server 400 ₂ ofthe first application 400 and server 402 ₂ the second application 402have the same exemplary IP address (i.e., 10.1.1.5). However, whenmigrated to the first cloud environment 408, the server 400 ₂ and theserver 402 ₂ are both assigned new IP addresses (i.e., 9.1.1.4 and9.1.1.3, respectively) to resolve this conflict. Thus, after the firstmigration of both applications 400 and 402 to the first cloudenvironment 408, the server 400 ₂ sees the IP address of the server 402₂ as 9.1.1.3, while the server 402 ₂ sees the IP address of the server400 ₂ as 9.1.1.4.

However, when the second application 402 is subsequently migrated to thesecond cloud environment 410, the first application 400 remains in thefirst cloud environment 408. The servers 402 ₁-402 _(m) of the secondapplication 402 are assigned new IP addresses; the exemplary new IPaddress for the server 402 ₂ is 8.3.12.121. The AS 104 operating in thefirst cloud environment. The AS 104 operating in the second cloudenvironment 410 knows the new IP addresses for the servers 402 ₁-402_(m) and updates the IP maps in the second application's configurationfiles accordingly.

FIG. 5 is a high-level block diagram of the performance evaluationmethod that is implemented using a general purpose computing device 500.In one embodiment, a general purpose computing device 500 comprises aprocessor 502, a memory 504, a performance evaluation module 505 andvarious input/output (I/O) devices 506 such as a display, a keyboard, amouse, a stylus, a wireless network access card, an Ethernet interface,and the like. In one embodiment, at least one I/O device is a storagedevice (e.g., a disk drive, an optical disk drive, a floppy disk drive).It should be understood that the performance evaluation module 505 canbe implemented as a physical device or subsystem that is coupled to aprocessor through a communication channel.

Alternatively, the performance evaluation module 505 can be representedby one or more software applications (or even a combination of softwareand hardware, e.g., using Application Specific Integrated Circuits(ASIC)), where the software is loaded from a storage medium (e.g., I/Odevices 506) and operated by the processor 502 in the memory 504 of thegeneral purpose computing device 500. Thus, in one embodiment, theperformance evaluation module 505 for evaluating application performancein a new environment, as described herein with reference to thepreceding figures, can be stored on a computer readable storage medium(e.g., RAM, magnetic or optical drive or diskette, and the like).

It should be noted that although not explicitly specified, one or moresteps of the methods described herein may include a storing, displayingand/or outputting step as required for a particular application. Inother words, any data, records, fields, and/or intermediate resultsdiscussed in the methods can be stored, displayed, and/or outputted toanother device as required for a particular application. Furthermore,steps or blocks in the accompanying figures that recite a determiningoperation or involve a decision, do not necessarily require that bothbranches of the determining operation be practiced. In other words, oneof the branches of the determining operation can be deemed as anoptional step.

While the foregoing is directed to embodiments of the present invention,other and further embodiments of the invention may be devised withoutdeparting from the basic scope thereof. Various embodiments presentedherein, or portions thereof, may be combined to create furtherembodiments. Furthermore, terms such as top, side, bottom, front, back,and the like are relative or positional terms and are used with respectto the exemplary embodiments illustrated in the figures, and as suchthese terms may be interchangeable.

What is claimed is:
 1. A non-transitory computer readable storage mediumthat stores instructions for evaluating a performance of an applicationwhen migrated from a first computing environment in which theapplication is currently executing to a different second computingenvironment, where the instructions, when executed, cause a processor toperform operations comprising: generating a configuration file usingdata obtained from the application executing in the first computingenvironment, wherein the application is a distributed application inwhich presentation, application processing, and data management areperformed as logically separate processes over a plurality ofcooperating servers residing in the first computing environment;installing the configuration file in a plurality of virtual machinesresiding in the second computing environment, wherein each virtualmachine of the plurality of virtual machines emulates a correspondingserver of the plurality of cooperating servers residing in the firstcomputing environment, and wherein the second computing environment is acloud computing environment; launching the application in the pluralityof virtual machines after the installing, wherein for each virtualmachine of the plurality of virtual machines a camouflage layerinterposed between the application executing on each virtual machine andan operating system of each virtual machine uses the configuration fileto intercept messages exchanged between the application executing oneach virtual machine and the operating system and to modify the messagesby translating an old Internet Protocol address associated with thecorresponding server in the first computing environment into a newInternet Protocol address associated with each virtual machine residingin the second computing environment, wherein the application in thesecond computing environment continues to use the old Internet Protocoladdress and an old host name used by the application in the firstcomputing environment, and the camouflage layer intercepts the messagesand modifies the messages in a manner that is transparent to theapplication in the second computing environment; and obtaining a metricindicative of the performance of the application from the plurality ofvirtual machines.
 2. The non-transitory computer readable storage mediumof claim 1, wherein the data comprises network information and filesystem information.
 3. The non-transitory computer readable storagemedium of claim 2, wherein the network information comprises input andoutput parameters for system calls.
 4. The non-transitory computerreadable storage medium of claim 2, wherein the file system informationcomprises file system settings.
 5. The non-transitory computer readablestorage medium of claim 2, wherein the file system information comprisesuser account settings.
 6. The non-transitory computer readable storagemedium of claim 2, wherein the network information comprises environmentvariables.
 7. The non-transitory computer readable storage medium ofclaim 2, wherein the network information comprises Internet Protocolconfigurations.
 8. The non-transitory computer readable storage mediumof claim 1, wherein the configuration file further replaces an inputparameter of a system call of the application that is related to networksetup and tear-down.
 9. The non-transitory computer readable storagemedium of claim 1, wherein the configuration file further replaces anoutput of a system call of the application that is related to networksetup and tear-down.
 10. The non-transitory computer readable storagemedium of claim 1, wherein the operations further comprise: copying afile accessed by the application from the first computing environment toa server residing in the second computing environment.
 11. Thenon-transitory computer readable storage medium of claim 1, wherein thefirst computing environment is a computing environment other than acloud computing environment.
 12. The non-transitory computer readablestorage medium of claim 1, wherein the first computing environment is acloud computing environment.
 13. The non-transitory computer readablestorage medium of claim 1, wherein the second computing environmentcomprises a plurality of different cloud computing environments to whichdifferent portions of the application are migrated.
 14. Thenon-transitory computer readable storage medium of claim 1, wherein amigration of the application from the first computing environment to thesecond computing environment results in a new interaction between theapplication and another application.
 15. The non-transitory computerreadable storage medium of claim 1, wherein the configuration file isimplemented in a combination of software and hardware.
 16. Thenon-transitory computer readable storage medium of claim 1, wherein theconfiguration file makes it appear to the application executing in thesecond computing environment that the application continues to executein the first computing environment.
 17. A system for evaluating aperformance of an application when migrated from a first computingenvironment in which the application is currently executing to adifferent second computing environment, the system comprising: aprocessor; and a computer readable storage medium that storesinstructions which, when executed, cause the processor to performoperations comprising: generating a configuration file using dataobtained from the application executing in the first computingenvironment, wherein the application is a distributed application inwhich presentation, application processing, and data management areperformed as logically separate processes over a plurality ofcooperating servers residing in the first computing environment;installing the configuration file in a plurality of virtual machinesresiding in the second computing environment, wherein each virtualmachine of the plurality of virtual machines emulates a correspondingserver of the plurality of cooperating servers residing in the firstcomputing environment, and wherein the second computing environment is acloud computing environment; launching the application in the pluralityof virtual machines after the installing, wherein for each virtualmachine of the plurality of virtual machines a camouflage layerinterposed between the application executing on each virtual machine andan operating system of each virtual machine uses the configuration fileto intercept messages exchanged between the application executing oneach virtual machine and the operating system and to modify the messagesby translating an old Internet Protocol address associated with thecorresponding server in the first computing environment into a newInternet Protocol address associated with each virtual machine residingin the second computing environment, wherein the application in thesecond computing environment continues to use the old Internet Protocoladdress and an old host name used by the application in the firstcomputing environment, and the camouflage layer intercepts the messagesand modifies the messages in a manner that is transparent to theapplication in the second computing environment; and obtaining a metricindicative of the performance of the application from the plurality ofvirtual machines.